host-interaction/thread

set thread name on Linux

rule:
  meta:
    name: set thread name on Linux
    namespace: host-interaction/thread
    authors:
      - michael.hunhoff@mandiant.com
    scopes:
      static: basic block
      dynamic: span of calls
  features:
    - and:
      - or:
        - os: linux
        - os: android
      - or:
        - api: pthread_setname_np
        - and:
          - api: prctl
          - number: 0xF = PR_SET_NAME

last edited: 2025-01-29 09:27:13